#include "UdpTcpServer.hpp"
#include <cstdint>
#include <cstdlib>
#include<memory>
int main(int argc,const char* argv[])
{
    if(argc != 2){
        exit(-1);
    }
    //通过智能指针访问
    uint16_t port=atoi(argv[1]);
    std::unique_ptr<UdpServer> svr (new UdpServer(port));
    svr->initServer();
    svr->Start();
    return 0;
}